package pay;

/**
 * 商品.
 *
 * @author GongXincheng
 * @since 2019-09-13 20:49
 */
public class Item {

    private double price;

    private int num;

    private String name;

    public Item() {
    }

    public Item(double price, int num, String name) {
        this.price = price;
        this.num = num;
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Item{" +
                "price=" + price +
                ", num=" + num +
                ", name='" + name + '\'' +
                '}';
    }
}
